#ifndef _NETWORKMANAGER_H_
#define _NETWORKMANAGER_H_

#include <netlib/net/tcpsocket.h>
#include <netlib/net/socketManager.h>
#include <utillib/util/singleton.h>

class NetworkManager
{
public:
	NetworkManager();
	virtual ~NetworkManager();

	SingletonInstance( NetworkManager );

	bool connectServer( char *ip, u_short port );

	bool send( netlib::packet::Packet *packet );
private:
	netlib::net::TCPSocket *m_socket;

	netlib::net::SocketManager m_socketManager;
};

#endif